<?php
/**
 * Created by PhpStorm.
 * User: goouc
 * Date: 2019/9/18
 * Time: 10:23
 */
global $_W,$_GPC;
$data['weid'] = $_W['uniacid'];
$data['uid'] = $_GPC['uid'];
$data['content'] = json_encode($_GPC['content']);
$data['sonid'] = $_GPC['sonid'];
$data['createtime'] = time();
$data['type'] = empty($_GPC['type'])?0:$_GPC['type'];
if($data['type'] == 2){
    //文档
    $data['name'] = $_GPC['title'];
    $data['size'] = $_GPC['size'];
}
pdo_insert($this->t_live_message,$data);
return $this->getresult(0,'记录成功',['code'=>200]);